package com.practice.thread;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedList;

public class Duilie {

	public static void main(String[] args) {
		
	}
	
	public static ArrayList single(ArrayList al){
		ArrayList nAl = new ArrayList();
		for(Iterator it = al.iterator();it.hasNext();){
			Object obj = it.next();
			if(!nAl.contains(obj)){
				nAl.add(obj);
			}
		}
		return nAl;
	}
}
